package br.com.statizo.financeiro.domain.entity.impl;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import br.com.statizo.financeiro.domain.enums.DateConfigType;

@Entity
@Table(name="tb_config")
public class Configuracoes extends EntidadeAbstrata{

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue
	@Column(name="id_config")
	private Long id;
	
	@Column(name="dt_pgto_default",nullable=false)
	@Enumerated(EnumType.ORDINAL)
	private DateConfigType dtPgtoDefault = DateConfigType.DT_PGTO_ATUAL;
	
	@Column(name="ini_conta_padrao", nullable = false)
	private boolean iniciarContaPadrao;
	
	@Override
	public Serializable getId() {
		return id;
	}
	
	public boolean isIniciarContaPadrao(){
		return iniciarContaPadrao;
	}
	
	public void setIniciarContaPadrao(boolean iniciarContaPadrao){
		this.iniciarContaPadrao = iniciarContaPadrao;
	}
	
	public DateConfigType getDtPgtoDefault() {
		return dtPgtoDefault;
	}
	
	public void setDtPgtoDefault(DateConfigType dtPgtoDefault) {
		this.dtPgtoDefault = dtPgtoDefault;
	}

}